import request from '../request.js'

export const getStationListByGroupIdApi = (groupId, pageNum, pageSize) => {
  return request.get(`recruit/station/page/list?groupId=${ groupId }&pageNum=${ pageNum }&pageSize=${ pageSize }`)
}

export const getAllManagerApi = () => {
  return request.get('recruit/station/all/manager/list')
}

export const getStationsByManagerNameApi = managerName => {
  return request.get(`recruit/station/list/manager/name?managerName=${ managerName }`)
}

export const getStationsLimitByManagerNameApi = (managerName, pageNum, pageSize) => {
  return request.get(`recruit/station/page/list?managerName=${ managerName }&pageNum=${ pageNum }&pageSize=${ pageSize }`)
}

export const deleteStationByStationInfoApi = (stationInfo) => {
  return request.post('recruit/station/delete/id', stationInfo)
}

export const putStationByStationInfoApi = (stationInfo) => {
  return request.post('recruit/station/update/id', stationInfo)
}

export const postStationByStationInfoApi = (stationInfo) => {
  return request.post('recruit/station/add/new', stationInfo)
}
